"""
文档地址: https://akshare.readthedocs.io
Github地址:https://github.com/akfamily/akshare

AkShare 策略示例
股票策略
BackTrader

"""

import akshare as ak

#连续上涨：stock_rank_lxsz_ths
stock_rank_lxsz_ths_df = ak.stock_rank_lxsz_ths()
print("-------------------连续上涨：stock_rank_lxsz_ths----------------------")
print(stock_rank_lxsz_ths_df)


#股票热度：stock_hot_rank_wc
stock_hot_rank_wc_df = ak.stock_hot_rank_wc(date="20220328")
print("-------------------股票热度：stock_hot_rank_wc----------------------")
print(stock_hot_rank_wc_df)


#大笔买入：stock_changes_em
stock_changes_em_df = ak.stock_changes_em(symbol="大笔买入")
print("-------------------大笔买入：stock_changes_em----------------------")
print(stock_changes_em_df)
#stock_changes_em_df.to_excel('大笔买入.xlsx')


"""
新浪财经-机构推荐池-最新投资评级 http://stock.finance.sina.com.cn/stock/go.php/vIR_RatingNewest/index.phtml
"""
#机构推荐股票：stock_institute_recommend
stock_institute_recommend_df=ak.stock_institute_recommend()
print("-------------------机构推荐股票：stock_institute_recommend----------------------")
print(stock_institute_recommend_df)
#stock_institute_recommend_df.to_excel('机构推荐股票.xlsx')


#东方财富个股人气榜：stock_hot_keyword_em
stock_hot_keyword_em_df = ak.stock_hot_keyword_em()
print("-------------------东方财富个股人气榜：stock_hot_keyword_em----------------------")
print(stock_hot_keyword_em_df)


#盈利预测：stock_profit_forecast
stock_profit_forecast_df = ak.stock_profit_forecast()
print("-------------------盈利预测：stock_profit_forecast----------------------")
print(stock_profit_forecast_df)


#投资评级：stock_rank_forecast_cninfo
stock_rank_forecast_cninfo_df = ak.stock_rank_forecast_cninfo(date="20220328")
print("-------------------投资评级：stock_rank_forecast_cninfo----------------------")
print(stock_rank_forecast_cninfo_df)


